/*
 * @文件描述: 
 * @版本: 
 * @作者: 周晨阳
 * @Date: 2021-04-18 15:07:34
 */
#ifndef RESISTANCEMETER_H
#define RESISTANCEMETER_H
#include "public.h"
#include "typedef.h"


#define UNIT_OHM 6
#define UNIT_KOHM 7
#define UNIT_MOHM 8
// x1时最大能测量的电阻值，单位M
#define RES_X1_RANGE 2
// X10时最大能测量的电阻值 ，单位k
#define RES_X10_RANGE 45

void openResistanceMeter();
void closeResistanceMeter();
unsigned char getResistanceMeterState();
void ResistanceMeterInit();
float getCurrentRes();
float getRawRes();
float getResNeedleAngle();
unsigned char getR_Unit();
void ResistanceMeterLooper();
void changeResistanceFactor(int factor);
int getResistanceFactor();



#endif